﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Supplier/SupplierMasterPage.master"
    AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Supplier_Vehicle_Default" %>


<asp:Content ID="Content2" ContentPlaceHolderID="pnlMain" runat="Server">
    <asp:DropDownList ID="ddlSuppliers" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlSuppliers_SelectedIndexChanged">
    </asp:DropDownList>
    <asp:HyperLink ID="hpyAddNew" runat="server">Add New Vehicle</asp:HyperLink><br /><br />
    <div class="divGrid">
        <asp:GridView ID="gvSupplierVehicles" runat="server" AutoGenerateColumns="False"
            EmptyDataText="No Record Found" DataKeyNames="SupplierVehicleID" 
            onrowdatabound="gvSupplierVehicles_RowDataBound" 
            onrowdeleted="gvSupplierVehicles_RowDeleted" 
            onrowdeleting="gvSupplierVehicles_RowDeleting">
            <Columns>
                <asp:BoundField DataField="VehicleCategory" HeaderText="Vehicle Category" />
                <asp:BoundField DataField="VehicleCode" HeaderText="Vehicle Code" />
                <asp:BoundField DataField="VehicleDescription" HeaderText="Vehicle Description" />
                <asp:BoundField DataField="AdultCapacity" HeaderText="Adult Capacity" />
                <asp:BoundField DataField="ChildrenCapacity" HeaderText="Children Capacity" />
                <asp:BoundField DataField="LaggageCapacity" HeaderText="Luggage Capacity" />
                <asp:BoundField DataField="MinAge" HeaderText="Min Age" />
                <asp:BoundField DataField="MaxAge" HeaderText="Max Age" />
                <asp:BoundField DataField="LeadTime" HeaderText="Lead Time" />
                <asp:HyperLinkField DataNavigateUrlFields="SupplierVehicleID" DataNavigateUrlFormatString="AddEdit.aspx?id={0}"
                    Text="Edit" ItemStyle-Width="30" />
                <asp:CommandField ShowDeleteButton="True" ItemStyle-Width="50" />
                <asp:HyperLinkField DataNavigateUrlFields="SupplierVehicleID" DataNavigateUrlFormatString="VehicleImage.aspx?id={0}"
                    Text="Image" ItemStyle-Width="30" />
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
